package cn.senjoeson.healthsport.bean;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Property;
import org.greenrobot.greendao.annotation.Unique;
import org.greenrobot.greendao.annotation.Generated;

/**
 * @author Android
 * @date 2018/1/2
 */
@Entity
public class User {
    @Id(autoincrement = true)
    private long userid;
    @Property(nameInDb = "username")
    @Unique
    private String username;
    @Property(nameInDb = "password")
    private String password;
    @Property(nameInDb = "realname")
    private String realname;
    @Property(nameInDb = "gender")
    private String gender;
    @Generated(hash = 1926397858)
    public User(long userid, String username, String password, String realname,
            String gender) {
        this.userid = userid;
        this.username = username;
        this.password = password;
        this.realname = realname;
        this.gender = gender;
    }
    @Generated(hash = 586692638)
    public User() {
    }
    public long getUserid() {
        return this.userid;
    }
    public void setUserid(long userid) {
        this.userid = userid;
    }
    public String getUsername() {
        return this.username;
    }
    public void setUsername(String username) {
        this.username = username;
    }
    public String getPassword() {
        return this.password;
    }
    public void setPassword(String password) {
        this.password = password;
    }
    public String getRealname() {
        return this.realname;
    }
    public void setRealname(String realname) {
        this.realname = realname;
    }
    public String getGender() {
        return this.gender;
    }
    public void setGender(String gender) {
        this.gender = gender;
    }

}
